package LuceneIndexCreate.http;

import io.webfolder.cdp.Launcher;
import io.webfolder.cdp.session.Session;
import io.webfolder.cdp.session.SessionFactory;

/**
 * Created by User on 2017/12/9.
 */
public class Captcha {

    public static void main(String[] args) {
        Launcher launcher = new Launcher();
        try (SessionFactory factory = launcher.launch(); Session session = factory.create()) {
            session.navigate("https://www.baidu.com");
            session.waitDocumentReady();
            session.setAttribute("#kw", "value", "hello");
            session.click("#su");
            session.waitDocumentReady();

        }
    }





}
